using BLToolkit.EditableObjects;

namespace EMan.Common.EnterpriseStructure
{
  public abstract class EmployeeWorkState : EditableObject< EmployeeWorkState >
  {
    public abstract int    Id    { get; protected set; }
    public abstract string Name  { get; protected set; }
    public abstract int    State { get; protected set; }

    public static EmployeeWorkState Create( string name, int value )
    {
      var obj = CreateInstance();
      obj.Name = name;
      obj.State = value;
      return obj;
    }
  }
}